home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Periodicals
/
General
/
Mac Script
/
mac-script-94-02.txt
next >
Wrap
Text File
|
1994-06-09
|
138KB
|
3,278 lines
Subject: MacScripting mailing list digest
Date: Fri, 04 Mar 94 15:12:35 -0600
From: Fred Terry <pfterry@lks.csi.com>
This is the MacScripting mailing list digest for the month of February 94.
=========================================================================
Date: Wed, 2 Feb 1994 13:17:33 +0000
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <STEWART@UTHSCSA.EDU>
Subject: None
None
One of the folks on a QuickMail group had this to say:
> QM-AOCE is CE's AOCE mailer program. It comes with QM-Forms AOCE, which
> converts your old forms files into the new format. It strongly
> resembles the old QM client, with the added benefit of being
> *Applescriptable*. It works flawlessly for me.
Has anybody on the group had the chance to use this, with Frontier or
otherwise? We are pretty solidly entrenched with QuickMail here so a mailer
that uses AOCE while still looking like QM is ideal. Having it be scriptable is
icing on the cake.
Also, to add even more icing to an already sweet package, has anyone written up
some verbs for the aete glue?
Thanks,
________________________________
Mark Stewart > stewart@uthscsa.edu
The Research Imaging Center, UTHSCSA
________________________________
=========================================================================
Date: Wed, 2 Feb 1994 13:31:52 -0500
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Jay Martin <martin@AIDT.EDU>
Subject: Re: QuickMail AOCE
>Has anybody on the group had the chance to use this, with Frontier or
>otherwise? We are pretty solidly entrenched with QuickMail here so a mailer
>that uses AOCE while still looking like QM is ideal. Having it be scriptable is
>icing on the cake.
>Also, to add even more icing to an already sweet package, has anyone written up
>some verbs for the aete glue?
>Thanks,
Mark,
I've got QM AOCE in and have installed it at my location for limited
testing. I've only played a bit with the scripting features using
AppleScript, but in general it looks pretty good. Inserting an address
appears to be a bit of a challenge, but I haven't seriously tried yet. If I
come up with anything interesting, I'll put them on gaea (they will be in
AppleScript, however).
As for the product itself, the gateway demo from StarNine that bridges a
QuickMail server to an individual machine works pretty well. However, you
must be careful when your QM server updates the name server, because if a
personal gateway tries to connect during this time, you get a timeout.
However, if you (like me) are switching to the PowerShare server, then this
problem is only a transitional problem. As for the QM forms, they do look
almost exactly the same but with the AOCE mailer stuck on the top.
I'm now in the process of installing the PowerShare server and hope to have
all converted in a few weeks. We are also adding the StarNine Mail*Link
SMTP for PowerShare gateway so that everyone gets internet mail on their
desktop.
+---------------------------------------+----------------------------------+
| --------------+ Jay M. Martin | All ideas here are my own and |
| +---------- | Alabama Industrial | in no way reflect my employer's. |
| | ----------+ Development Training | martin@aidt.edu |
| +---------------------------------- | (But what do they know?) |
+---------------------------------------+----------------------------------+
=========================================================================
Date: Wed, 2 Feb 1994 15:31:18 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "Rattray, A." <rattray_a@JPMORGAN.COM>
Subject: Re: Frontier 3.0 Update Info
I purchase Frontier and received version 2.0....What is their fax number...
_______________________________________________________________________________
From: Discussion of Userland Frontier for Macintosh on Wed, Dec 1, 1993 1:14 PM
Subject: Frontier 3.0 Update Info
To: Multiple recipients of list FRONTIER
Here is a message which Dave Winer has posted on CompuServe (and presumably
AppleLink and America OnLine). The schedule noted assumes that the disk
duplicator and the printer deliver on time. Note the address to which to
send the electronic orders (which I've copied here because it is somewhat
buried in the message: 76703.4047@compuserve.com
Frontier 3.0 Upgrade Info -------------------------
The cost to upgrade to Frontier 3.0 is $39; outside the U.S. and Canada
$59. Only registered Frontier users are eligable for the upgrade. If you
haven't sent in your registration card, please do so now.
We will start mailing upgrade packages on December 3.
You can order your upgrade via electronic mail for quicker turnaround.
Send a message to 76703.4047@compuserve.com. Include your Frontier
registration number and credit card information: your name as it appears on
the card, account number, expiration date, mailing address. Your account
will be charged additional sales tax if applicable.
If you purchased Frontier 2.0 since August 1, 1993, the upgrade is free.
Proof of purchase date is required to qualify for a free upgrade. If you
purchased Frontier directly from UserLand Software, no proof is required.
Free upgrades cannot be processed via electronic mail.
DW
- --
jwbaxter@pt.olympus.net (John W. Baxter)
AppleLink BAXTER.JOHN if you really must (but ONLY from AppleLink).
CIS 71735,1626
=========================================================================
Date: Wed, 2 Feb 1994 16:21:08 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Shawn Connelly <prubank!qmgateway!sconnelly@UUNET.UU.NET>
Subject: Re: None
RE>None
I haven't used this, although we just upgraded to System 7 Pro, but I've
done a lot of work with QuickMail and Frontier. I've been using
QuickMessenger and it's HyperCard XCMD's. They work great, and I get all
the automation I need.
- --------------------------------------
Date: 2/2/94 4:14 PM
To: Shawn Connelly
From: Discussion of Userland Frontie
None
One of the folks on a QuickMail group had this to say:
> QM-AOCE is CE's AOCE mailer program. It comes with QM-Forms AOCE, which
> converts your old forms files into the new format. It strongly
> resembles the old QM client, with the added benefit of being
> *Applescriptable*. It works flawlessly for me.
Has anybody on the group had the chance to use this, with Frontier or
otherwise? We are pretty solidly entrenched with QuickMail here so a
mailer
that uses AOCE while still looking like QM is ideal. Having it be
scriptable is
icing on the cake.
Also, to add even more icing to an already sweet package, has anyone
written up
some verbs for the aete glue?
Thanks,
________________________________
Mark Stewart > stewart@uthscsa.edu
The Research Imaging Center, UTHSCSA
________________________________
------------------------------------------------------------------------
Shawn Connelly | Computers are useless. They
The Prudential Bank | can only give you answers.
Two Concourse Pkwy, #400 | - Pablo Picasso
Atlanta, GA 30328 |
Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
=========================================================================
Date: Wed, 2 Feb 1994 17:49:37 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
Subject: Re: Re- QuickMail AOCE
Reply to: RE>Re: QuickMail AOCE
Thanks for the info. Sounds good. As I'm thinking about it--moving our site to
PowerTalk, bit by bit--how do PowerTalk/QM and plain QM compare in terms of the
RAM hit? A casual investigation on my own machine indicates that QM takes about
800K when it's active and 300K when inactive. Then again I get a lot of mail.
Any idea?
Mark Stewart
=========================================================================
Date: Wed, 2 Feb 1994 16:26:57 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Scott Kinard -- Educational Service District #112
<skinard@ESD112.WEDNET.EDU>
Subject: Can you script Versaterm?
Greetings,
How scriptable is the communications app Versaterm? (I'm using v4.6.3)
What I'd like to be able to do is start it up and have it download some
files from another system. Is this possible? If so, are any examples of how
to do it floating around?
- - Scott
+------------------------------------------------------------------------------+
+ Scott Kinard (Applications Programmer/Operator) skinard@esd112.wednet.edu +
+ Educational Service District #112 skinard@well.sf.ca.us +
+ 2500 NE 65th Ave 72440,2736 (Compu$erve) +
+ Vancouver, WA. 98661-6812 +
+ (206) 750-7502 (206) 750-9706 FAX +
+------------------------------------------------------------------------------+
+ "For a list of the ways that technology has failed to improve the quality +
+ of our lives, please press three." - Alice Kahn +
+------------------------------------------------------------------------------+
=========================================================================
Date: Wed, 2 Feb 1994 21:17:55 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Can you script Versaterm?
> How scriptable is the communications app Versaterm?
>
At this time the only available scriptable communications program
is SITcomm from Aladdin Systems, Inc. It is also fully recordable and
supports Frontier Menu Sharing!
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Thu, 3 Feb 1994 08:42:26 -0500
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Jay Martin <martin@AIDT.EDU>
Subject: Re: Can you script Versaterm?
>Greetings,
> How scriptable is the communications app Versaterm? (I'm using v4.6.3)
>What I'd like to be able to do is start it up and have it download some
>files from another system. Is this possible? If so, are any examples of how
>to do it floating around?
>
>- Scott
Scott,
I've got VersaTerm 5.0, and it's not scriptable with AppleScript (no aete),
and I haven't seen any Frontier stuff to script it. I've read somewhere
lately that some version of it is (maybe Pro), but I don't know. It's
really too bad, because it could really help me in a couple of
circumstances.
Jay
+---------------------------------------+----------------------------------+
| --------------+ Jay M. Martin | All ideas here are my own and |
| +---------- | Alabama Industrial | in no way reflect my employer's. |
| | ----------+ Development Training | martin@aidt.edu |
| +---------------------------------- | (But what do they know?) |
+---------------------------------------+----------------------------------+
=========================================================================
Date: Thu, 3 Feb 1994 10:34:16 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
Subject: Re: Re- Can you script Versa
Reply to: RE>Re: Can you script Versater
> > > How scriptable is the communications app Versaterm? >
> At this time the only available scriptable communications program is
> SITcomm from Aladdin Systems, Inc. It is also fully recordable and
> supports Frontier Menu Sharing!
I've seen SITcomm and it looks really cool, really useful. Alas it doesn't
address the internet at all nor is it projected to. Which is a shame because,
at our site, the easiest way to transfer files from our Suns to our Macs is to
use Dartmouth's Fetch ftp client which has a nice Mac-like front end and
handles most of the transfer mode issues automatically. Adding scriptablility
to Fetch or adding FTP to SITcomm--and I would prefer the latter--would let us
spend time more productively than sitting there waiting for the transfer to
finish so we can start the next download.
But enough kvetching,
Mark Stewart
BIAD-Research Imaging Center
UTHSCSA
P.S. I've seen AnArchie. It proves you can do scriptable ftp but it's a little
too specific. IMHO, a more general tool is still needed.
=========================================================================
Date: Thu, 3 Feb 1994 09:16:34 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Mike Cohen <isis@NETCOM.COM>
Subject: Re: Re- Can you script Versa
At 10:34 AM 2/3/94 +0000, mark stewart wrote:
> Reply to: RE>Re: Can you script Versater
>> > > How scriptable is the communications app Versaterm? >
>
>> At this time the only available scriptable communications program is
>> SITcomm from Aladdin Systems, Inc. It is also fully recordable and
>> supports Frontier Menu Sharing!
>
>I've seen SITcomm and it looks really cool, really useful. Alas it doesn't
>address the internet at all nor is it projected to. Which is a shame because,
>at our site, the easiest way to transfer files from our Suns to our Macs is to
>use Dartmouth's Fetch ftp client which has a nice Mac-like front end and
>handles most of the transfer mode issues automatically. Adding scriptablility
>to Fetch or adding FTP to SITcomm--and I would prefer the latter--would let us
>spend time more productively than sitting there waiting for the transfer to
>finish so we can start the next download.
>But enough kvetching,
>Mark Stewart
>BIAD-Research Imaging Center
>UTHSCSA
>
I've seen telnet & ftp CTB tools, which should work with SITcomm (I don't
use th since I have a dial-up only account).
____________________________________________________________
Mike Cohen | "Software that means business"
ISIS International |
(818) 788-4747 Voice | isis@netcom.com | ALink: D6734
(818) 501-0653 Fax | NewtonMail: MikeC49506 | AOL: MikeC20
=========================================================================
Date: Thu, 3 Feb 1994 12:27:05 -0500
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Mark Duffield <duffiem@AA.WL.COM>
Subject: Re: Can you script Versaterm?
In-Reply-To: Jay Martin <martin@AIDT.EDU> "Re: Can you script Versaterm?" (Feb
3, 8:42am)
On Feb 3, 8:42am, Jay Martin wrote:
> Subject: Re: Can you script Versaterm?
> >Greetings,
> > How scriptable is the communications app Versaterm? (I'm using v4.6.3)
> >What I'd like to be able to do is start it up and have it download some
> >files from another system. Is this possible? If so, are any examples of how
> >to do it floating around?
> >
> >- Scott
>
> Scott,
>
> I've got VersaTerm 5.0, and it's not scriptable with AppleScript (no aete),
> and I haven't seen any Frontier stuff to script it. I've read somewhere
> lately that some version of it is (maybe Pro), but I don't know. It's
> really too bad, because it could really help me in a couple of
> circumstances.
>
I have VersaTerm PRO V5.0.1. No aete there either. Sorry.
[Signature deleted]
>-- End of excerpt from Jay Martin
- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark J. Duffield |
Sr. Systems Analyst |
Preclinical Scientific Computing |
Parke Davis Pharmaceutical Research |
Ann Arbor, MI 48105 |
=========================================================================
Date: Thu, 3 Feb 1994 17:02:42 -0500
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Jay Martin <martin@AIDT.EDU>
Subject: Scripting FTP
Mark,
You need Anarchie. This is a shareware ($10) product from Peter Lewis that
allows you to script FTP's and archie searches. It supports both
AppleScript and Frontier (including menu sharing in the latest version -
1.1.0). It's way cool! I found about it here a couple of weeks ago.
Jay
+---------------------------------------+----------------------------------+
| --------------+ Jay M. Martin | All ideas here are my own and |
| +---------- | Alabama Industrial | in no way reflect my employer's. |
| | ----------+ Development Training | martin@aidt.edu |
| +---------------------------------- | (But what do they know?) |
+---------------------------------------+----------------------------------+
=========================================================================
Date: Thu, 10 Feb 1994 18:26:18 +0000
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <STEWART@UTHSCSA.EDU>
Subject: Troubles with Anarchie
Troubles with Anarchie via Mail*Link(r) for PowerTalk(tm)/QM
Well after some back and forth and a bit of reassurance from Peter Lewis I've
embarked on writing a set of scripts for Anarchie (pronounced "anarchy"
according to its author.) Leonard Rosenthol kindly provided the glue for
Frontier which I am using. Alas I ran into trouble from the start.
Here's the verb my script calls. From what I can gather from the comments this
verb is simply designed to get a list of files from the specified directory and
write them into a file on my Mac.
on list (destFile, hostName = nil, searchPath = nil, fname = nil, user = nil,
password = nil, viaAlex = nil) { <<list files in a directory & SAVE IN destFile
return (appleEvent (AnArchie.id, 'Arch', 'List', '----', filespec (destF
ile),
'FTPh', string (hostName), 'FTPc', string (searchPath),
'pnam', string (fname), 'ArGU', string (user), 'ArGp', string (p
assword),
'ArGA', string (viaAlex)))}
with AnArchie {
launch ( );
bringToFront ();
list ("Mark's HD:list", "biad42", "biad17_data/home/stewart", "", "userI
D",
"password", "");
}
This results in the following error message: "Internal error -- unexpected
opcode encountered (38)" with the cursor pointing at the first parameter in the
call to Anarchie.list. I'm not really sure what the error is reporting. I've
never used any verbs with optional parameters so it may be that I'm writing
them wrong.
Anybody have any idea what's happening? Ultimately I'd like the script to login
to one of our Suns and automatically download a list of files to the Mac.
Thanks for any help,
Mark Stewart
Research Imaging Center
UTHSCSA
=========================================================================
Date: Thu, 10 Feb 1994 17:32:09 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Terry Teague <teague@APPLE.COM>
Subject: Re: Troubles with Anarchie
Dear Mark,
>Troubles with Anarchie via Mail*Link(r) for PowerTalk(tm)/QM
[stuff deleted]
>This results in the following error message: "Internal error -- unexpected
>opcode encountered (38)" with the cursor pointing at the first parameter in the
>call to Anarchie.list. I'm not really sure what the error is reporting. I've
>never used any verbs with optional parameters so it may be that I'm writing
>them wrong.
What version of Frontier are you using, and on what machine - there were
some problems with earlier problems of Frontier on '040 machines that could
cause the problems you describe. The current version of Frontier is 3.0.1.
Regards, Terry Teague
=========================================================================
Date: Fri, 11 Feb 1994 01:30:15 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Troubles with Anarchie
>Troubles with Anarchie via Mail*Link(r) for PowerTalk(tm)/QM
>Well after some back and forth and a bit of reassurance from Peter Lewis I've
>embarked on writing a set of scripts for Anarchie (pronounced "anarchy"
>according to its author.) Leonard Rosenthol kindly provided the glue for
>Frontier which I am using. Alas I ran into trouble from the start.
...
>This results in the following error message: "Internal error -- unexpected
>opcode encountered (38)" with the cursor pointing at the first parameter in the
>call to Anarchie.list. I'm not really sure what the error is reporting. I've
>never used any verbs with optional parameters so it may be that I'm writing
>them wrong.
>
I'll pass the unexpected opcode encountered (38) problem along to the
engineer, and ask what it means.
Meanwhile, this script works for me (yes...I've disguised the password):
with AnArchie
launch ( )
bringToFront ()
list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
"thisIsNotMyPassowd", "")
[The line wrap on the list () call is courtesy of Eudora and friends.]
Hope this helps. --John
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
UserLand Software support
=========================================================================
Date: Fri, 11 Feb 1994 11:31:56 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Chuck Pliske <chuckp@U.WASHINGTON.EDU>
Subject: Scripting AppleMail files
I'm interested in using Frontier to process the numerous files I am now
getting/saving thru the star nine gateway with the standard Apple mailer. Does
anyone know if those files can be "decoded" with frontier into their component
parts?
Thanks,
Chuck Pliske
=========================================================================
Date: Mon, 14 Feb 1994 00:15:48 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: A Note About Recording
[Cross-posted from CompuServe]:
If you find that Frontier is putting a comment in the with statement at
the beginning of the portion of a recorded script involving some
application ("ToyStore" in this example), like this (approximate)
with objectModel { << no glue table for application "ToyStore"
even when you __know__ that there is in fact a glue table, check the
appInfo.path entry. A stale value there (I had moved the application to a
different volume) will cause the problem, which is corrected by ensuring
that appInfo.path is valid.
--John
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Mon, 14 Feb 1994 14:36:43 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
Subject: app.start problems
app.start problems via Mail*Link(r) for PowerTalk(tm)/QM
I am trying to use app.start and am having a problem getting it to coerce
an address for a element in my verb.apps table. The name of the
application is SQL*DBA, and as long as the "*" is in the name, Frontier
can't coerce the address.
Is there a way around this. I'd use "SQLDBA" as the name of the app, but I
need it to be available for installation on non-Frontier literate user's
machines.
- ------------------------------------------------------------------------
Shawn Connelly | Computers are useless. They
The Prudential Bank | can only give you answers.
Two Concourse Pkwy, #400 | - Pablo Picasso
Atlanta, GA 30328 |
Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
=========================================================================
Date: Mon, 14 Feb 1994 14:22:44 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: app.start problems
At 14:36 2/14/94 +0000, Shawn Connelly wrote:
>---------------------- Information from the mail header -----------------------
>Sender: Discussion of Userland Frontier for Macintosh
> <FRONTIER@DARTCMS1.BITNET>
>Poster: Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
>Subject: app.start problems
>-------------------------------------------------------------------------------
>
>app.start problems via Mail*Link(r) for PowerTalk(tm)/QM
>I am trying to use app.start and am having a problem getting it to coerce
>an address for a element in my verb.apps table. The name of the
>application is SQL*DBA, and as long as the "*" is in the name, Frontier
>can't coerce the address.
Shawn,
Most cases of addressing in Frontier, in which "illegal" characters are
part of a table name, can be solved using this form:
app.start (verbs.apps.["SQL*DBA"])
I don't know whather that would work in this particular verb, or not, but
it should. Note that it is likely to be a major pain.
There shouldn't be any major problems using SQLDBA as the table name, and
exporting it under that name for installation on the users' machines.
After exporting it, you could play with the [Finder] name of the exported
file, if it helps your users.
--John
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
UserLand Software support
=========================================================================
Date: Tue, 15 Feb 1994 12:48:00 +0000
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "peter (p.s.) wilson" <peterw@BNR.CA>
Subject: Rinaldi's Chooser RESET Problem
I am having a problem using Rinaldi's Chooser 1.7 available
on the Frontier Extras? 5/93 disk.
I have a System 7.1 Installer script that (briefly)
* mounts an Appleshare volume
* renames the existing System Folder to Old System Folder
* copies over a new System 7.1 Folder
* uses chooser.getCurrentPrinter () to determine the
PrtDriver,SelectedLaser, and PrtZone currently active.
* disables the old System Folder (by moving the Finder)
* Opens & closes the new System Folder to bless it.
* uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
to reset the previously defined LaserWriter.
After RESTART, the new System Folder is ACTIVE, but the old
and now reset laserwriter selection is NOT ACTIVE as it should
be. This reset operation worked fine in System 7.0.1 with
Laserwriter 7.1.1 but not it seems with 7.1 and 7.1.2 LaserW.
It does not fail completely however...
I can make the laserwriter selection ACTIVE simply by OPENing
Chooser, clicking the LaserWriter icon ONCE, and CLOSing Chooser.
But these last steps should not be necessary.
Is something broken?
OR alternatively what Frontier code could I use
to OPEN Chooser, select/click the LaserWriter icon and
then CLOSE the Chooser? (a workaround the original problem)
Any ideas will be most welcome.
Thanks,
Peter Wilson
Software Support,
BNR Ottawa, Canada
peterw@bnr.ca
=========================================================================
Date: Tue, 15 Feb 1994 14:57:45 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
Subject: Re> Re: Troubles with Anar...
Re> Re: Troubles with Anar... via Mail*Link(r) for PowerTalk(tm)/QM
------ From: Discussion of Userland Frontie, Fri, Feb 11, 1994 ------
I'll pass the unexpected opcode encountered (38) problem along to the
engineer, and ask what it means.
Meanwhile, this script works for me (yes...I've disguised the password):
with AnArchie
launch ( )
bringToFront ()
list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
"thisIsNotMyPassowd", "")
Hello John,
Thanks for responding. At P Terry's urging, I decided to upgrade to the new
Frontier (v3.0.1) before carrying on my investigations. Having done that, I
don't get the opcode error anymore. Instead I get Anarchie telling me my login
was incorrect. To quote->
Status: -2 (FTP server)
State: Sending password
Result: 530 Login incorrect.
I've compared the results of ftp'ing into our Sun directly using NCSA
Telnet.Telnet 2.5 has no problem ftp'ing directly and writing a list of the
files in my home directory. So where's the difficulty, I wonder?
When you run your script, what is it exactly that you get back? I'm assuming
that the output of the ls command is written to the file at "HD:list." Correct?
Should there be a file at "HD:list" already or is Anarchie supposed to create
this a la file.sureFolder?
I appreciate whatever assistance you have to offer.
Mark Stewart
Research Imaging Center
=========================================================================
Date: Wed, 16 Feb 1994 09:10:00 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Shawn Connelly <sconnelly@QMGATEWAY.PRUBANK.COM>
Subject: Passing Values from Fronti...
Passing Values from Fronti... via Mail*Link(r) for PowerTalk(tm)/QM
Does anyone know how to pass a paramenter to a handler in HyperCard using
AppleEvents?
The situation I have is a script that I am trying to kick off via
Frontier. I can have it pick up a value from a field, but would prefer to
pass the value from my Frontier script.
- ------------------------------------------------------------------------
Shawn Connelly | Computers are useless. They
The Prudential Bank | can only give you answers.
Two Concourse Pkwy, #400 | - Pablo Picasso
Atlanta, GA 30328 |
Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
=========================================================================
Date: Wed, 16 Feb 1994 15:21:43 EST
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
Subject: combining mailing lists
In the next day or two, we will be combining the Frontier and AppleScript
mailing lists into one list called "MacScripting". We are doing this partly
because there is much more overlap on the two lists and also because the
current AppleScript list is not running under a very robust LISTSERV system.
The new list will be running on a machine at Dartmouth College which is much
more reliable and allows for greater user-control of the mailing list
(including digests and even gateways to newsgroups if a mac-scripting
newsgroup does indeed ever come into existence). Note that the ftp site for
Frontier and AppleScript won't be moving from gaea.
When the change is made, you will be alerted. We are hoping to have no
downtime at all on either list.
When the switch is made the the list is ready to roll, we will send out a
note indicating the new addresses you can use for sending to the list,
sending commands to the LISTSERV, and reaching a human moderator.
If you have any questions or comments, please feel free to contact either one
of us.
- -Fred Terry, moderator applescript list, pfterry@lks.csi.com
- -Andy J. Williams, moderator, frontier list, AndyJW@dartmouth.edu
=========================================================================
Date: Wed, 16 Feb 1994 17:00:53 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Passing Values from Fronti...
At 9:10 2/16/94 +0000, Shawn Connelly wrote:
>
>Does anyone know how to pass a paramenter to a handler in HyperCard using
>AppleEvents?
>
>The situation I have is a script that I am trying to kick off via
>Frontier. I can have it pick up a value from a field, but would prefer to
>pass the value from my Frontier script.
>
Shawn,
The unexciting Frontier script below shows one way:
with objectModel, HyperCard
doScript ("send \"testN 5\" to card \"JohnTest\"")
As it happens, in this case testN is the following silly handler (but it
does use its parameter) and is a background script (because I happen to
have a UserTalk script as the card script):
on testN n
repeat n times
beep
end repeat
put "I am still the HyperTalk test"
end testN
The above should show the way, anyhow. --John
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Wed, 16 Feb 1994 17:00:59 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Re> Re: Troubles with Anar...
At 14:57 2/15/94 +0000, mark stewart wrote:
>When you run your script, what is it exactly that you get back? I'm assuming
>that the output of the ls command is written to the file at "HD:list." Correct?
>Should there be a file at "HD:list" already or is Anarchie supposed to create
>this a la file.sureFolder?
Where this is the script mentioned:
>with AnArchie
> launch ( )
> bringToFront ()
> list ("HD:list", "olympus.net", "/h/jwbaxter/", nil, "jwbaxter",
>"thisIsNotMyPassowd", "")
Indeed, the file HD:list contains the output of an ls command, as near as I
can tell. The file doesn't need to exist in advance...I seem to remember
that an existing file gets replaced silently (suggesting protection via
script in some circumstances)
It's not clear to me what your login problem might be, assuming you have
used a correct userid and password. I suppose Anarchie might be sending
one or both of the userid and password with a line terminator which your
host isn't happy with, but that seems very doubtful.
I'll add the invalid opcode problem in your Anarchie script to the list of
things which indicate a need for Frontier 3.0.1...thanks for the feedback.
--John
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Thu, 17 Feb 1994 09:27:29 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
Subject: Re: Re- Re> Re- Troubles wit
Reply to: RE>Re: Re> Re: Troubles with A
> It's not clear to me what your login problem might be, assuming you have
> used a correct userid and password. I suppose Anarchie might be sending
> one or both of the userid and password with a line terminator which your
> host isn't happy with, but that seems very doubtful.
Actually, according to Peter Lewis, Anarchie's author, v1.0 of the program was
indeed adding a character; a dash at the beginning of the password string. Our
Sparcstations run SunOS 4.1.3 which likes its login strings unadulterated.
Peter kindly sent me the new version, v1.1.1d2, which makes no assumptions
about such matters, and is working great.
> I'll add the invalid opcode problem in your Anarchie script to the list
> of things which indicate a need for Frontier 3.0.1...thanks for the
> feedback.
This may not be necessary. I upgraded to v3.0.1 and tried the list script that
caused the error again and didn't get any opcode errors. Therefore, it would
seem that the opcode problem is specific to version 2.0.1 of Frontier although
I haven't tried confirming that.
Thank you much,
Mark Stewart
BIAD-Research Imaging Center
UTHSCSA
stewart@uthscsa.edu
=========================================================================
Date: Thu, 17 Feb 1994 12:01:48 -0500
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Robert Weber <Robert_Weber@QUICKMAIL.YALE.EDU>
Subject: FAQ
Reply to: FAQ
Would the administrator please post a list of frequently asked questions,
including the means of signing off this list?
=========================================================================
Date: Thu, 17 Feb 1994 12:45:00 EST
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
Subject: Re: FAQ
- --- Robert Weber wrote:
Would the administrator please post a list of frequently asked questions,
including the means of signing off this list?
- --- end of quoted material ---
There is no FAQ for this list as traffic was always quite low. There IS one
for the AppleScript list which is still under construction.
As for how to sign off, that is changing today as we combine the two lists so
hang on for another day and new instructions for signing off will be posted.
(in the mean time, you can send signoff request directly to me at
AndyJW@dartmouth.edu and I will take care of it manually)
- -A
=========================================================================
Date: Thu, 17 Feb 1994 10:11:49 -0800
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Re> Re: Troubles with Anar...
>I'll add the invalid opcode problem in your Anarchie script to the list of
>things which indicate a need for Frontier 3.0.1...thanks for the feedback.
>
You have mods you want to send me for the master table...
LDR
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Thu, 17 Feb 1994 20:42:40 U
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: Shawn Connelly <prubank!qmgateway!sconnelly@UUNET.UU.NET>
Subject: Re: Passing Values from Fr...
Re>>Passing Values from Fr... via Mail*Link(r) for PowerTalk(tm)/QM
Thanks for the information.
- ------------------------------------------------------------------------
Shawn Connelly | Computers are useless. They
The Prudential Bank | can only give you answers.
Two Concourse Pkwy, #400 | - Pablo Picasso
Atlanta, GA 30328 |
Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
------ From: Discussion of Userland Frontie, Thu, Feb 17, 1994 ------
Mail*Link(r) SMTP RE>Passing Values from Fron
At 9:10 2/16/94 +0000, Shawn Connelly wrote:
>
>Does anyone know how to pass a paramenter to a handler in HyperCard using
>AppleEvents?
>
>The situation I have is a script that I am trying to kick off via
>Frontier. I can have it pick up a value from a field, but would prefer to
>pass the value from my Frontier script.
>
Shawn,
The unexciting Frontier script below shows one way:
with objectModel, HyperCard
doScript ("send \"testN 5\" to card \"JohnTest\"")
As it happens, in this case testN is the following silly handler (but it
does use its parameter) and is a background script (because I happen to
have a UserTalk script as the card script):
on testN n
repeat n times
beep
end repeat
put "I am still the HyperTalk test"
end testN
The above should show the way, anyhow. --John
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Sat, 19 Feb 1994 09:13:19 EST
Reply-To: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
Sender: Discussion of Userland Frontier for Macintosh
<FRONTIER@DARTCMS1.BITNET>
From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
Subject: List closed
This mailing list is now closed.
Please use
MacScripting@dartmouth.edu
for all future messages about Frontier.
All recipients have been moved over already.
With problems, contact MacScripting-Request@dartmouth.edu.
Thanks
- -A
=========================================================================
Date: Mon, 21 Feb 1994 09:03:08 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: William Randall Cook <wrc@NETCOM.COM>
Subject: Re: MACSCRPT Digest - 19 Feb 1994 to 20 Feb 1994
I could possibly look in to the problem if you gave me a macsbug
log. The other information I need is the address of the "AppleScript"
code segment in memory. You can find this by typing
wh NNNNN
where NNN is one of the routines on the stack (the last number on
each line of the stack dump). I need it to figure out the offsets of
the routines, to find out their names.
- -w
=========================================================================
Date: Mon, 21 Feb 1994 10:59:11 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: David Lewis <lewis@NETCOM.COM>
Subject: Re: List of Aladdin Translators
>Where can I get a list of the Aladdin translator names that I can use w/i
>applescript?
>
>"BinHex4" seems to work for the BinHex4 translator, and "tar" works for the
>tar translator, but "UUcode" and "Unix Compress" don't seem to work for
>their respective translators.
>
>Thanks in advance.
>
>
>
>Regards,...Chris
>---------------------------------------------------------------------------
>Christopher B. Brannon University of Pittsburgh
>cbbst+@pitt.edu THE*TRUTH*IS*OUT*THERE Political Science
In most of the translators (unfortunately not the early ones like
AppleSingle) you will find a 'Name' resource with ID 0. This is a string
containing the name to use. The first character is the string length, and
the remaining characters are the name itself.
David
- ------------------------------------------------------------------------
David Lewis lewis@netcom.com (408) 439-2374
=========================================================================
Date: Mon, 21 Feb 1994 10:10:40 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Invisible Files
>That's where this line comes in (all one line):
>
>tell application "Finder" to <<event FNDRmove>> alias "microtower:Trash:"
>given <<class fsel>>:{alias(WatchVol & ":" & (x as string))}
>
>I know this line works, because it deletes visible files just fine.
>Now, it seems the list folder command can see invisible files, but the
>Finder can't. When I run the script, and an invisible file is on the
>target volume, the Finder brings up an error dialog:
Finder pretty much ignores invisible files, most of the time. [I like to
make definitive statements like that!] This seems to be such a
situation...just as this one: have a folder with a couple of visible
files, and an invisible one. Make that folder's window current in Finder,
and do Select All in the Edit menu. Drag the collection to the trash and
empty the trash. The invisible file was not part of the selection, and is
still in the folder.
The script is trying to induce Finder not to ignore something it wants to
ignore.
- ----------
The easy solution is: file.delete(thefile)
in Frontier. That's only worked since January, 1992.
Frontier can also manipulate a file's invisible flag for you (but I don't
remember whether that also goes back to first release, or not):
file.isVisible (thefile) returns the state of the flag, and
file.setVisible (thefile, booleanSetting) sets it.
I'm sure there's a Scripting Addition available to do what you need, but I
don't pay a lot of attention to them.
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Mon, 21 Feb 1994 10:10:58 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Rinaldi's Chooser RESET Problem
Peter Wilson writes:
>
>I am having a problem using Rinaldi's Chooser 1.7 available
>on the Frontier Extras? 5/93 disk.
>
>I have a System 7.1 Installer script that (briefly)
> * mounts an Appleshare volume
> * renames the existing System Folder to Old System Folder
> * copies over a new System 7.1 Folder
> * uses chooser.getCurrentPrinter () to determine the
> PrtDriver,SelectedLaser, and PrtZone currently active.
> * disables the old System Folder (by moving the Finder)
> * Opens & closes the new System Folder to bless it.
> * uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
> to reset the previously defined LaserWriter.
>
>After RESTART, the new System Folder is ACTIVE, but the old
>and now reset laserwriter selection is NOT ACTIVE as it should
>be. This reset operation worked fine in System 7.0.1 with
>Laserwriter 7.1.1 but not it seems with 7.1 and 7.1.2 LaserW.
>
Various things happen when the Chooser is used to select a printer...more
with LaserWriter 8.x than before. That may be part of the problem.
However, SOME of the things that happen are done in the current System
file...that's the open one, not necessarily the one which will be used on
the next Mac startup.
I would be tempted to arrange for the last step:
> * uses chooser.choosePrinter(PrtDriver,SelectedLaser,PrtZone)
> to reset the previously defined LaserWriter.
to be deferred until after the Restart. How?
One way would be to set up a one-time task in the Scheduler (supplied with
Frontier 3.0, fixed slightly in Frontier 3.0.1 in connection with errors in
one-time tasks), which would do the chooser.choosePrinter step. Set the
time for the task to be just after the restart you are about to do.
Keep in mind that this is a sort of temporary solution...when the new
printing architecture happens (it's coming soon...available now with the
QuickDraw GX betas) everything changes:
1. print jobs can be moved from printer to printer after they are
spooled (even drastic moves, like PostScript printer to QuickDraw printer
or vice versa).
2. the default printer is selected from a Finder menu
3. The Chooser's part in printing is pretty much gone...it makes
"desktop printers" [yet more icons for your desktop: double click one, and
see the print queue for that printer; drag a document onto a desktop
printer and the doc's application prints the doc to that printer, etc]
--John
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
The opinions expressed here are those of a large tree in my back yard.
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Mon, 21 Feb 1994 11:37:21 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: List of Aladdin Translators
At 3:32 AM 2/21/94 -0500, Chris Brannon wrote:
>Where can I get a list of the Aladdin translator names that I can use w/i
>applescript?
>
At the moment there isn't an official one. We know that lots of
people are now trying to script the translators and we are trying to come
up with some info on doing it.
>"BinHex4" seems to work for the BinHex4 translator, and "tar" works for the
>tar translator, but "UUcode" and "Unix Compress" don't seem to work for
>their respective translators.
>
Check out the 'Name' resource in each translator.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Mon, 21 Feb 1994 11:38:11 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Eudor, working with windows, and AppleScript
At 1:02 AM 2/21/94 -0500, Bob Snyder wrote:
>How would I go about pulling either the contents of a window or the
>selected area of a window via AppleScript from Eudora (2.02beta)?
>
There is no way to get the currently selected text, Steve hasn't
put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
As to the current message, you can refer to it in AppleScript as
'message named ""', or in Frontier 'message[""]'.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Mon, 21 Feb 1994 14:20:02 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
Subject: AppleScript Distribution License = $500
:-)
OK, here's the scoop. If I was to create a product that was just a blank
AppleScript file with some comments in it, I could license AppleScript to
distribute with the product. To do so, I would have to pay Apple a yearly
fee of $500. Now, as of yet I do not know if that license includes all the
same software that you would get through APDA but chances are good that
they would require me to distribute everything. This might be a viable way
to get everyone an upgrade for cheap bucks. More info later when I see the
paperwork from Apple software licensing. I don't know if I am going to want
to do this but I'll keep looking into it and let you know what I discover.
:-)
Kee Nethery
_________________________________________________________________
Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
A newly poured 14.4 Kbps information superhighway onramp.
=========================================================================
Date: Mon, 21 Feb 1994 19:43:24 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
Subject: Re: AppleScript Distribution License = $500
>:-)
>OK, here's the scoop. If I was to create a product that was just a blank
>AppleScript file with some comments in it, I could license AppleScript to
>distribute with the product. To do so, I would have to pay Apple a yearly
>fee of $500.
There is a very real possibility that the next version of MacHTTP will ship
with AppleScript bundled with it. I just have to demonstrate to the powers
that be that the nominal shareware fee will recoup the $500 license fee.
- -----------------------------------------------------------------------
Chuck Shotton
cshotton@oac.hsc.uth.tmc.edu "I am NOT here."
=========================================================================
Date: Mon, 21 Feb 1994 22:41:26 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
Subject: Re: Eudor, working with windows, and AppleScript
At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
>At 1:02 AM 2/21/94 -0500, Bob Snyder wrote:
>>How would I go about pulling either the contents of a window or the
>>selected area of a window via AppleScript from Eudora (2.02beta)?
>>
> There is no way to get the currently selected text, Steve hasn't
>put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
>
> As to the current message, you can refer to it in AppleScript as
>'message named ""', or in Frontier 'message[""]'.
This will pull a received message. I'm looking to snag (and later replace)
the text in a Sending window, which hasn't been queued yet. Is there a way
to do this?
Basically, what I'm trying to do is write a script that can be called from
OSA Menu that will suck the text out of Eudora, submit it to RIPEM Mac to
be encrypted/signed, and drop it back in the Sending window with the
appropriate PEM headers.
Bob
- --
Bob Snyder N2KGO MIME, RIPEM mail accepted
snyderra@dunx1.ocs.drexel.edu finger for RIPEM public key
<A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
=========================================================================
Date: Tue, 22 Feb 1994 09:10:28 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Eric Andersen <erica2669@AOL.COM>
Subject: remove
Remove EricA2669@qol.com
=========================================================================
Date: Tue, 22 Feb 1994 09:26:04 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
Subject: Admin Stuff
Here's a mini-FAQ:
1) How do I signoff MacScripting?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
message:
SIGNOFF MACSCRPT
Note: you must do this from the account from which you subscribed.
2) How do I receive this in a daily digest?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
messsage:
SET MACSCRPT DIGEST
3) What else can the LISTSERV do that is neat?
To find out, send mail to LISTSERV@dartmouth.edu with the following in the
body of the messsage:
INFO REFCARD
4) How can I get basic help using LISTSERV?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
messsage:
HELP
Hope this helps!
- -A
=========================================================================
Date: Tue, 22 Feb 1994 12:16:15 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Eudor, working with windows, and AppleScript
>At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
>>At 1:02 AM 2/21/94 -0500, Bob Snyder wrote:
>>>How would I go about pulling either the contents of a window or the
>>>selected area of a window via AppleScript from Eudora (2.02beta)?
>>>
>> There is no way to get the currently selected text, Steve hasn't
>>put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
>>
>> As to the current message, you can refer to it in AppleScript as
>>'message named ""', or in Frontier 'message[""]'.
>
>This will pull a received message. I'm looking to snag (and later replace)
>the text in a Sending window, which hasn't been queued yet. Is there a way
>to do this?
>
Well, I just did this in Frontier and it worked just fine getting
the text of this message that I am writing to you! So it does work on ANY
type of message. Perhaps if you sent the script you are using, that might
help.
>Basically, what I'm trying to do is write a script that can be called from
>OSA Menu that will suck the text out of Eudora, submit it to RIPEM Mac to
>be encrypted/signed, and drop it back in the Sending window with the
>appropriate PEM headers.
>
Check out the Frontier Install file - I have a complete set of
scripts for doing that included in the shared menu! In fact, here is the
signMessage() script from the examples.RIPEM table.
on signMessage() {
with eudora {
local (msgObj, curMessage=3D"", newMessage =3D "");
msgObj =3D getCurrentMessageObject(); =AB find the sucker!
curMessage =3D examples.getEntireMessage(msgObj); =AB get=
the text
bundle { =AB deal with RIPEM
if (!RIPEM.isRunning()) {
RIPEM.launch()};
RIPEM.bringToFront();
newMessage =3D RIPEM.sign(curMessage); =AB sign it!
Eudora.bringToFront()};
setMessageText(msgObj, newMessage)}}
And here is the getCurrentMessageObject which does just I suggested:
on getCurrentMessageObject() {
with objectModel, Eudora, eventInfo {
return(message[""])}}
Leonard
- ----------------------------------------------------------------------------=
- -
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Tue, 22 Feb 1994 21:56:00 GMT
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Minshull, Mark" <MINSHULL.M@APPLELINK.APPLE.COM>
Subject: Re2: "parameterizing" tell sta
Michael Compton <compton@ptolemy-ethernet.arc.nasa.gov> writes:
>tell application myApp of machine myMachine of zone myZone
> <body of tell block>
>end tell
>
>I've found that the above works only if the <body> contains only generic
>(i.e.non application-specific) statements. If I try to include a statement
>specific to myApp, it won't compile.
Michael:
Have you tried:
tell application "Excel" -- a local copy of the app you are targeting
tell application myApp of machine myMachine of zone myZone
<body of tell block>
end tell
end tell
This tricks the compiler into using the correct application-specific terms
within the inner tell. I assume that you are using references (variables) for
"myApp"; otherwise this should work transparently.
Mark
- --
Mark Minshull :
OpenDoc Engineering Manager : Apple usually doesn't care
Apple Computer, Inc. : what I say... When they do
1 Infinite Loop, MS 303-3A : my opinions are my own
=========================================================================
Date: Tue, 22 Feb 1994 13:56:00 -0700
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Dannette Coleman,
Keyano College (403) 791 4822" <S203022@ACAD.KEYANOC.AB.CA>
Subject: Re: Admin Stuff
I got your message in Fort McMurray, Alberta, Canada, just letting
you know, I don't think the people you wanted to get this message got it!
=========================================================================
Date: Tue, 22 Feb 1994 15:17:59 PST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
Subject: Re2: "parameterizing" tell sta
In-Reply-To: "Minshull, Mark"'s message of Tue,
22 Feb 1994 21:56:00 GMT <9402222304.AA25522@ptolemy.arc.nasa.gov>
Thanks, Mark, I'll give your suggestion a try.
- -Michael
=========================================================================
Date: Tue, 22 Feb 1994 22:05:33 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chris Brannon <cbbst+@PITT.EDU>
Subject: old digests
Could someone mail to me the Mac Scripting digests that came out before
Feb. 20 (I think there were just two)?
Somehow I managed to delete them unread.
Thanks in advance!
Regards,...Chris
- ---------------------------------------------------------------------------
Christopher B. Brannon University of Pittsburgh
cbbst+@pitt.edu THE*TRUTH*IS*OUT*THERE Political Science
=========================================================================
Date: Wed, 23 Feb 1994 10:09:37 +0100
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: bob jansen <jansen@SYD.DIT.CSIRO.AU>
Subject: Re: MS Admin II
>>
>> OK, this is the second message. If you received two copies of this, let me
>> know and I will see what I can do.
>>
>> Hopefully the problems are fixed.
>>
>> -A
>>
Me too, or should that read me two
bobj
- -------------------------------------------------------
Dr. Bob Jansen
email: jansen@syd.dit.csiro.au
Address until March 1994
CNRS Institut des Textes et Manuscrits Modernes,
61, rue de Richelieu, 75084 Paris Cedex 02, France
Phone (+33 1) 42 96 30 94 Fax (+33 1) 47 03 89 40
Normal address
CSIRO Division of Information Technology
Physical: Building E6B, Macquarie University Campus, North Ryde NSW 2113
Postal: Locked Bag 17, North Ryde NSW 2113
Phone: +612 325 3100 Fax: +612 325 3101
- -------------------------------------------------------
=========================================================================
Date: Wed, 23 Feb 1994 10:00:03 U
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chuck Pliske <chuckp@U.WASHINGTON.EDU>
Subject: Scripting Applemail files
I'm interested in using Frontier or AppleScript to process the numerous files
I am now getting/saving thru the star nine gateway with the standard Apple
mailer. Does anyone know if those files can be "decoded" with scripts into
their component parts?
For example I would like to create a droplet that appends the text of a
letter into a file whose name is the "from" parameter.
Thanks,
Chuck Pliske
=========================================================================
Date: Wed, 23 Feb 1994 13:25:08 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
Subject: Re> Scripting Applemail files
Chuck,
I'm assuming you're using PowerTalk, since you refer to AppleMail in your
subject. If this is not the case, disregard this message!
QuickMail AOCE is scriptable, to a certain extent. For instance, the
following script will extract the textual portion of an AppleMail message
which QM AOCE has opened:
tell application "QuickMail(tm) AOCE"
copy (QM Field 1) to theText
end tell
When QM opens an AppleMail letter, the contents are put in one big scrolling
field (QM Field 1). However, and this has caused me a lot of trouble, QM
doesn't handle addresses in the header in an intelligible way. So, the
following script:
tell application "QuickMail(tm) AOCE"
tell QMAOCEMailer 1
copy Sender to theSender
end tell
end tell
results in gibberish that I can't even paste into this message. (*Stepping up
on a soapbox*) I mailed CE and they gave me some lame excuse about Apple
refusing to tell them how PowerTalk addresses were done. This may be the case
for getting the name string from an address out of the mailer, but Greg Quinn
has osaxen that, given a path to a business card, will return the address!
(*Stepping down off the soapbox*)
Anyway, this would do part of what you want, but not all. However, you could
always parse the header (which is usually stuck at the end of the textual
message) for the "From:" tag, which would give you who it came from.
Jay
+---------------------------------------+----------------------------------+
| --------------+ Jay M. Martin | All ideas here are my own and |
| +---------- | Alabama Industrial | in no way reflect my employer's. |
| | ----------+ Development Training | martin@aidt.edu |
| +---------------------------------- | (But what do they know?) |
+---------------------------------------+----------------------------------+
- ----- From: Macintosh Scripting Systems, Feb 23, 1994 ------
I'm interested in using Frontier or AppleScript to process the numerous files
I am now getting/saving thru the star nine gateway with the standard Apple
mailer. Does anyone know if those files can be "decoded" with scripts into
their component parts?
For example I would like to create a droplet that appends the text of a
letter into a file whose name is the "from" parameter.
Thanks,
Chuck Pliske
=========================================================================
Date: Wed, 23 Feb 1994 14:51:21 U
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
Subject: Re: Scripting Applemail file
Reply to: RE>Scripting Applemail files
> I'm interested in using Frontier or AppleScript to process the numerous
> files I am now getting/saving thru the star nine gateway with the
> standard Apple mailer. Does anyone know if those files can be "decoded"
> with scripts into their component parts?
>
> For example I would like to create a droplet that appends the text of a
> letter into a file whose name is the "from" parameter.
Frontier is quite adept at parsing text files but I wouldn't expect that you
could do it using AppleMail since it's not scriptable. Once the message has
been saved to a file outside the In-Box it becomes fair game though.
Does anyone know whether the Scriptable Finder is supposed to offer access to
system extensions like the Catalogs and Mail extensions as well as basic Finder
operations? How about Control Panels?
Mark Stewart
BIAD-Research Imaging Center
UTHSCSA
stewart@uthscsa.edu
=========================================================================
Date: Wed, 23 Feb 1994 13:45:23 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Scripting Applemail files
>I'm interested in using Frontier or AppleScript to process the numerous files
>I am now getting/saving thru the star nine gateway with the standard Apple
>mailer. Does anyone know if those files can be "decoded" with scripts into
>their component parts?
>
I know that the latest version of the GTQ OSAX library contains a
bunch of items for PowerTalk, but I haven't had a chance to try it yet. It
may indeed have the items you need for querying the mailbox.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Wed, 23 Feb 1994 18:50:56 +0000
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Dave Harrison <harrison@SHIVA.COM>
Subject: Newbie FinderMenu Question
Hello,
I have installed FinderMenu 3.0, which came on my 3.01 disk two. Or at least
I think I have installed FinderMenu. I never get a "Scripts" item in my
menubar. Anyone have any ideas? Is this as simple as an INIT conflict or
am I missing something basic?
Thanks in advance,
Dave Harrison
Shiva Corporation
=========================================================================
Date: Wed, 23 Feb 1994 18:27:33 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Frontier Scripts for Eudora
I am working on an update for the Eudora Install file for Frontier, so if
any of you have an neat example scripts, or suggestions/improvements for
the next version of my install file - PLEASE send them my way!!
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Wed, 23 Feb 1994 22:34:39 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
Subject: Re: Eudora, working with windows, and AppleScript
At 12:16 PM 2/22/94 -0800, Leonard Rosenthol wrote:
>>At 11:38 AM 2/21/94 -0800, Leonard Rosenthol wrote:
>>>At 1:02 AM 2/21/94 -0500, Bob Snyder wrote:
>>> There is no way to get the currently selected text, Steve hasn't
>>>put that in yet (at least as of 2.0.1, but no notes about it for 2.0.2b).
>>>
>>> As to the current message, you can refer to it in AppleScript as
>>>'message named ""', or in Frontier 'message[""]'.
>>
>>This will pull a received message. I'm looking to snag (and later replace)
>>the text in a Sending window, which hasn't been queued yet. Is there a way
>>to do this?
>>
> Well, I just did this in Frontier and it worked just fine getting
>the text of this message that I am writing to you! So it does work on ANY
>type of message. Perhaps if you sent the script you are using, that might
>help.
I found out what it was: I was trying to pull just 'message named ""', and
Eudora won't give this. It will give 'field named "" of message named ""'
though.
Now Eudora is crashing on me when I run it... :P Here's the script (I know
it doesn't error check well yet):
tell application "Eudora 2.0.2b13-3.94"
copy Field named "" of Message named "" to plainText
tell application "RIPEM Mac"
activate
Encrypt data plainText mode 3 with interact
copy the result to cipherText
end tell
activate
copy cipherText to Field named "" of Message named ""
end tell
Bob
- --
Bob Snyder N2KGO MIME, RIPEM mail accepted
snyderra@dunx1.ocs.drexel.edu finger for RIPEM public key
<A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
=========================================================================
Date: Wed, 23 Feb 1994 21:22:08 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Newbie FinderMenu Question
At 18:50 2/23/94 +0000, Dave Harrison wrote:
>I have installed FinderMenu 3.0, which came on my 3.01 disk two. Or at lea=
st
>I think I have installed FinderMenu. I never get a "Scripts" item in my
>menubar. Anyone have any ideas? Is this as simple as an INIT conflict or
>am I missing something basic?
=46or the Scripts menu to appear in Finder's menubar, you need:
1. The FinderMenu Extension in the Extensions folder. This is a
combination INIT and faceless background application.
2. A menubar defined for =9FNDR (that's an option-f, then NDR, regardless
of what the Internet may do to it), in the Frontier (or Runtime) database.
The installer for FinderMenu should take care of that.
3. The Frontier (or Runtime) mentioned above running.
4. (Somewhat optional)...a FinderMenu Prefs file in the Preferences
folder (the installer should have done that, too). This only becomes an
issue if you edit the title of the Scripts menu to use one of the Icons
contained in the FinderMenu Prefs file (see the docs, or ask). If you do
that and don't have the prefs file, there will be a startup crash...that
version of FinderMenu is broken in that regard...a later version is OK, but
wasn't ready to be included with the Frontier 3.0 shipment...not enough
testing.
If you have all that, and still don't see a Scripts menu in Finder,
we'll need to go into this more deeply...feel free to write to me outside
the group.
--John
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
UserLand Software support
=========================================================================
Date: Wed, 23 Feb 1994 22:48:07 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: David Ray <daver@NETCOM.COM>
Subject: Getting serial port status in AS
Hi listPeople,
I'm trying to figure out a way to use AppleScript to get the status
of the serial ports (in use, not in use). Can this be done? I saw a couple
OSAXen that query the Gestalt manager, but none of the Gestalt calls that
they have been set up to do will return information about whether one is
busy.
For that matter, can this be done in any scripting language?
Thanks-
Dave Ray
daver@netcom.com
=========================================================================
Date: Wed, 23 Feb 1994 22:49:50 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
Subject: Re: Scripting Applemail files
>I'm interested in using Frontier or AppleScript to process the numerous files
>I am now getting/saving thru the star nine gateway with the standard Apple
>mailer. Does anyone know if those files can be "decoded" with scripts into
>their component parts?
>
>For example I would like to create a droplet that appends the text of a
>letter into a file whose name is the "from" parameter.
>
I have just started playing with Beyond Mail Rules and it does give you
access to the address. You can decode them into their component parts but I
have to say that Beyond Mail is not quite as stable as I would prefer.
I have only played with opening letters within the In Tray. No idea if you
can drag them to a droplet outside of the In Tray.
For sure you could create a Beyond Mail rule that does what you desire
automatically as new mail arrives. You could skip the process of dragging
it onto a droplet.
Kee Nethery
_________________________________________________________________
Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
A newly poured 14.4 Kbps information superhighway onramp.
=========================================================================
Date: Thu, 24 Feb 1994 11:25:50 GMT0BST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
Subject: The Basics
Hi all,
I've just joined this list and need a bit of help. Can anyone give me
the location of a list FAQ if there is one; alternatively can someone
explain briefly what the various scripting languages are and what
they are good at. I am getting and understanding lots of messages but
am missing the basic building block background to this subject.
ftp'able files welcomed too.
Thanks in advance.
Alistair.
- --
- ---------------------------------------------------------------------------
| Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester |
| Computer Centre, Leicester University, Non-UK:agl1@leicester.ac.uk |
| University Road, Leicester LE1. 7RH., U.K. |
| |
| UK Tel: (0533) 522250 Fax: (0533) 525027 |
| Non-UK Tel: +44 (533) 522250 Fax: +44 (533) 525027 |
- ---------------------------------------------------------------------------
=========================================================================
Date: Thu, 24 Feb 1994 09:21:15 CST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Charles Wiltgen <wiltgen%barinc@HEMKOSYS.COM>
Subject: Forwarded: -108 and -1753 errors
Sorry this message got so long to get here -- I hope someone remembers the
original post about the -108 error...
Errors -108 and -1753 are the *exact* same errors I got with FolderWatcher.
Joe Zobkiw (zobkiw@datawatch.com) and I never figured out the -1753 error,
but the -108 error was solved (I think -- I can't use it much because of the
- -1753 error) by upping the SIZE resource to (in his case) 256K from 176K or
so.
Of course, it could be all a coincidence, but FolderWatcher and OSA Menu
essentially do the same thing different ways.
+----------------------------------------------------------------------+
| "I want to die in my sleep, like my Grandfather. Not screaming, |
| like the passengers in his car." |
|--------------------------------------------------- Charles Wiltgen --|
| cwiltgen@aol.com |
+----------------------------------------------------------------------+
=========================================================================
Date: Thu, 24 Feb 1994 09:57:28 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Fred Terry <pfterry@LKS.CSI.COM>
Subject: Re: The Basics
In-Reply-To: Your message of "Thu,
24 Feb 94 11:25:50 GMT." <9402241421.AA08314@lks.lks.csi.com>
> Hi all,
>
> I've just joined this list and need a bit of help. Can anyone give me
> the location of a list FAQ if there is one; alternatively can someone
> explain briefly what the various scripting languages are and what
> they are good at. I am getting and understanding lots of messages but
> am missing the basic building block background to this subject.
>
> ftp'able files welcomed too.
>
> Thanks in advance.
Alistair,
You'll find an AppleScript FAQ at
gaea.kgs.ukans.edu/applescript/00applescript.faq. If you have Anarchie 1.1.1,
there is a bookmark set for it. The faq isn't complete yet, but you should get
your question about the various scripting languages answered. You should
probably get one of the third party books or the Scripting Language Guide for
the building blocks. These are also listed in the faq.
Hope this helps.
pf
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
"Bad spellers of the world, untie!"
--Graffito
=========================================================================
Date: Thu, 24 Feb 1994 10:55:44 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Robert Parker <parker@GDLS.COM>
Subject: Re: Scripting Applemail files
In-Reply-To: <199402231804.NAA08380@dartvax.dartmouth.edu>
please remove me from your distribution
parker@gdls.com
thanks
On Wed, 23 Feb 1994, Chuck Pliske wrote:
> I'm interested in using Frontier or AppleScript to process the numerous files
> I am now getting/saving thru the star nine gateway with the standard Apple
> mailer. Does anyone know if those files can be "decoded" with scripts into
> their component parts?
>
> For example I would like to create a droplet that appends the text of a
> letter into a file whose name is the "from" parameter.
>
> Thanks,
>
> Chuck Pliske
=========================================================================
Date: Thu, 24 Feb 1994 10:56:58 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Robert Parker <parker@GDLS.COM>
Subject: Re: Re> Scripting Applemail files
In-Reply-To: <199402231927.OAA19464@dartvax.dartmouth.edu>
please remove me from distribution
parker@gdls.com
thanks
On Wed, 23 Feb 1994, Jay Martin wrote:
> Chuck,
>
> I'm assuming you're using PowerTalk, since you refer to AppleMail in your
> subject. If this is not the case, disregard this message!
>
> QuickMail AOCE is scriptable, to a certain extent. For instance, the
> following script will extract the textual portion of an AppleMail message
> which QM AOCE has opened:
>
> tell application "QuickMail(tm) AOCE"
> copy (QM Field 1) to theText
> end tell
>
> When QM opens an AppleMail letter, the contents are put in one big scrolling
> field (QM Field 1). However, and this has caused me a lot of trouble, QM
> doesn't handle addresses in the header in an intelligible way. So, the
> following script:
>
> tell application "QuickMail(tm) AOCE"
> tell QMAOCEMailer 1
> copy Sender to theSender
> end tell
> end tell
>
> results in gibberish that I can't even paste into this message. (*Stepping up
> on a soapbox*) I mailed CE and they gave me some lame excuse about Apple
> refusing to tell them how PowerTalk addresses were done. This may be the case
> for getting the name string from an address out of the mailer, but Greg Quinn
> has osaxen that, given a path to a business card, will return the address!
> (*Stepping down off the soapbox*)
>
> Anyway, this would do part of what you want, but not all. However, you could
> always parse the header (which is usually stuck at the end of the textual
> message) for the "From:" tag, which would give you who it came from.
>
> Jay
>
> +---------------------------------------+----------------------------------+
> | --------------+ Jay M. Martin | All ideas here are my own and |
> | +---------- | Alabama Industrial | in no way reflect my employer's. |
> | | ----------+ Development Training | martin@aidt.edu |
> | +---------------------------------- | (But what do they know?) |
> +---------------------------------------+----------------------------------+
> ----- From: Macintosh Scripting Systems, Feb 23, 1994 ------
>
> I'm interested in using Frontier or AppleScript to process the numerous files
> I am now getting/saving thru the star nine gateway with the standard Apple
> mailer. Does anyone know if those files can be "decoded" with scripts into
> their component parts?
>
> For example I would like to create a droplet that appends the text of a
> letter into a file whose name is the "from" parameter.
>
> Thanks,
>
> Chuck Pliske
=========================================================================
Date: Thu, 24 Feb 1994 10:58:12 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Robert Parker <parker@GDLS.COM>
Subject: Re: Scripting Applemail files
In-Reply-To: <199402232142.QAA08758@dartvax.dartmouth.edu>
please remove me from distribution
parker@gdls.com
thanks
On Wed, 23 Feb 1994, Leonard Rosenthol wrote:
> >I'm interested in using Frontier or AppleScript to process the numerous files
> >I am now getting/saving thru the star nine gateway with the standard Apple
> >mailer. Does anyone know if those files can be "decoded" with scripts into
> >their component parts?
> >
> I know that the latest version of the GTQ OSAX library contains a
> bunch of items for PowerTalk, but I haven't had a chance to try it yet. It
> may indeed have the items you need for querying the mailbox.
>
> Leonard
>
> -----------------------------------------------------------------------------
> Leonard Rosenthol Internet: leonardr@netcom.com
> Director of Advanced Technology AppleLink: MACgician
> Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Thu, 24 Feb 1994 11:00:44 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Robert Parker <parker@GDLS.COM>
Subject: Re: Scripting Applemail files
In-Reply-To: <199402240654.BAA03114@dartvax.dartmouth.edu>
please remove my name from distribution
parker@gdls.com
thanks
On Wed, 23 Feb 1994, Kee Nethery +1 510 843 6140 wrote:
> >I'm interested in using Frontier or AppleScript to process the numerous files
> >I am now getting/saving thru the star nine gateway with the standard Apple
> >mailer. Does anyone know if those files can be "decoded" with scripts into
> >their component parts?
> >
> >For example I would like to create a droplet that appends the text of a
> >letter into a file whose name is the "from" parameter.
> >
>
> I have just started playing with Beyond Mail Rules and it does give you
> access to the address. You can decode them into their component parts but I
> have to say that Beyond Mail is not quite as stable as I would prefer.
>
> I have only played with opening letters within the In Tray. No idea if you
> can drag them to a droplet outside of the In Tray.
>
> For sure you could create a Beyond Mail rule that does what you desire
> automatically as new mail arrives. You could skip the process of dragging
> it onto a droplet.
>
> Kee Nethery
>
> _________________________________________________________________
> Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
> A newly poured 14.4 Kbps information superhighway onramp.
=========================================================================
Date: Thu, 24 Feb 1994 11:28:16 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Bill Bug (Bill Bug)" <bbug1@CC.SWARTHMORE.EDU>
Subject: I can't get AppleScript to talk to Eudora v1.4.1
Hello All,
For some reason, I haven't been able to take advantage of the extensive
AppleEvent suites that Eudora 1.4.1 recognizes. I've been trying to
write a script using the AppleEvent info that is contained in Eudora's
'aete' resource; however, none of the syntactically correct commands I
string together will work. For instance, the following AppleScript
fragment:
tell application "Eudora1.4.1"
activate
Open Mailbox "<mailbox name>"
end tell
returns this error:
"Eudora 1.4.1 got an error. Can't get mailbox "<mailbox name>".
Access not allowed.
I'm am no AppleScript expert, but I have been able to compile and
successfully run over a dozen complex scripts that interact with other
applications which recognize AppleEvents. From the "EudoraSuite.rtf"
document available on the Internet, I was unable to cull any additional
information on how to use the 'AppleScript English' version of Eudora's
AppleEvent suite. That document has an extensive listing of the AE
messages and objects that Eudora recognizes, but I don't know how to
utilize that info when constructing scripts in the AppleScript Script
Editor.
As I am not a frequent reader of this newsgroup, please reply directly
to my e-mail address. I promise to post a summary of the info that
arrives.
Thanks ahead of time for your help.
Cheers,
Bill Bug
- --
*************************
* Bill Bug *
* Dept. of Biology *
* Swarthmore College *
*************************
=========================================================================
Date: Thu, 24 Feb 1994 08:39:52 +0000
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Comments: Resent-From: Dave McCormick
<lhdsy1!lhmacqm.lahabra.chevron.com!Dave_McCormick@uunet.UU.NET>
Comments: Originally-From: MacintoshScriptingSystems
<lhdsy1!lhmacqm.lahabra.chevron.com!MacintoshScriptingSystems
@uunet.UU.NET>
From: Dave McCormick
<lhdsy1!lhmacqm.lahabra.chevron.com!Dave_McCormick@UUNET.UU.NET>
Subject: RE>Re: Re> Scripting Applemail files
please remove me from the mailing list. I appologise for not using the proper
listserv signoff procedure, but I have lost the address.
David McCormick
jdsmc@chevron.com or Dave_McCormick@lhmacqm.lahabra.chevron.com
=========================================================================
Date: Thu, 24 Feb 1994 13:31:35 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
Subject: Re: Getting serial port status in AS
In-Reply-To: Your message of "Wed,
23 Feb 1994 22:48:07 PST."
<9402241225.AA00501@tools1.ee.iastate.edu>
>I'm trying to figure out a way to use AppleScript to get the status
>of the serial ports (in use, not in use). Can this be done? I saw a couple
>OSAXen that query the Gestalt manager, but none of the Gestalt calls that
>they have been set up to do will return information about whether one is
>busy.
>
>For that matter, can this be done in any scripting language?
Nope. In fact it's not possible from an application either. Before
system 7 there was no way to tell. Under system 7, there was no way
to tell. But I just saw a tech note fly past my desk a few days ago
that may have alluded to a possible solution. If no one else responds
with the info, I'll try to dig it up and summarize.
+---------------------------------------------------------------+
| Jim Van Peursem - Ph.D. Candidate - Ham Radio -> KE0PH |
| Department of Electrical Engineering and Computer Engineering |
| Iowa State University - Ames, IA 50011 : (515) 294-8339 |
| internet - jvp@iastate.edu -or- jvp@cpre1.ee.iastate.edu |
+---------------------------------------------------------------+
=========================================================================
Date: Thu, 24 Feb 1994 13:44:39 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Fred Terry <pfterry@LKS.CSI.COM>
Subject: removal
Listers,
I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
>From the list. After one of his first messages, I sent him a note explaining
how to signoff. He didn't reply to the note (he may not have gotten it), and
he sent another message or two into the list to be unsubscribed.
My apologies to those of you who pay for your email; he has been removed from
the list. Just to clear up any confusion, I'm attaching the list mini-FAQ that
Andy Williams sent out a few day ago. Keep it. Contemplate to it. The mini-FAQ
is your friend. :-)
pf
1) How do I signoff MacScripting?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
message:
SIGNOFF MACSCRPT
Note: you must do this from the account from which you subscribed.
2) How do I receive this in a daily digest?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
messsage:
SET MACSCRPT DIGEST
3) What else can the LISTSERV do that is neat?
To find out, send mail to LISTSERV@dartmouth.edu with the following in the
body of the messsage:
INFO REFCARD
4) How can I get basic help using LISTSERV?
Send mail to LISTSERV@dartmouth.edu with the following in the body of the
messsage:
HELP
=========================================================================
Date: Thu, 24 Feb 1994 15:56:19 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Robin B. Lake" <rbl@HAL.EPBI.CWRU.EDU>
Subject: Re: Getting serial port status in AS
>I'm trying to figure out a way to use AppleScript to get the status
>of the serial ports (in use, not in use). Can this be done? I saw a couple
>OSAXen that query the Gestalt manager, but none of the Gestalt calls that
>they have been set up to do will return information about whether one is
>busy.
>
>For that matter, can this be done in any scripting language?
Nope. In fact it's not possible from an application either. Before
system 7 there was no way to tell. Under system 7, there was no way
to tell. But I just saw a tech note fly past my desk a few days ago
that may have alluded to a possible solution. If no one else responds
with the info, I'll try to dig it up and summarize.
===============
Should be possible to tell from an application, as both VersaTerm PRO and
AppleLink 6.1 put up a dialog box noting that the port is in use and
requesting confirmation to take it over.
Rob Lake
Environmental Modeling Inc.
rbl@hal.cwru.edu
=========================================================================
Date: Fri, 25 Feb 1994 00:20:14 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: David Ray <daver@NETCOM.COM>
Subject: Re: Getting serial port status in AS
>>>I'm trying to figure out a way to use AppleScript to get the status
>>>of the serial ports (in use, not in use).
>>>For that matter, can this be done in any scripting language?
>>Nope. In fact it's not possible from an application either.
>Should be possible to tell from an application, as both VersaTerm PRO and
>AppleLink 6.1 put up a dialog box noting that the port is in use and
>requesting confirmation to take it over.
ZTerm also can sense if the port is in use, and brings up a dialog box
where the user can ignore the port or take it over. There must be some kind
of query that can find out. Question is, where does this info. come from?
I was hoping that it came the Gestalt Manager because there are OSAXen
to talk to the Gestalt Manager.
Any takers?
Dave Ray
daver@netcom.com
=========================================================================
Date: Fri, 25 Feb 1994 07:32:43 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
Subject: Re: Getting serial port status in AS
>ZTerm also can sense if the port is in use, and brings up a dialog box
>where the user can ignore the port or take it over. There must be some kind
>of query that can find out. Question is, where does this info. come from?
>I was hoping that it came the Gestalt Manager because there are OSAXen
>to talk to the Gestalt Manager.
>
>Any takers?
Write a piece of code that tries to open a serial driver. Make sure the
port is already in use and check out the return codes....
#include <Serial.h>
short inRefNum, outRefNum;
if ((err = OpenDriver("\p.AOut", &inRefNum)))
return err;
if ((err = OpenDriver("\p.AIn",&outRefNum)))
return err;
- -----------------------------------------------------------------------
Chuck Shotton
cshotton@oac.hsc.uth.tmc.edu "I am NOT here."
=========================================================================
Date: Sat, 26 Feb 1994 00:28:42 +0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Peter N Lewis <peter.lewis@INFO.CURTIN.EDU.AU>
Subject: Re: removal
>I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
>from the list. After one of his first messages, I sent him a note explaining
You apologize??? That man is a total jerk. Why do they let these people
lose on the Internet?
Peter.
_______________________________________________________________________
Peter N Lewis <peter.lewis@info.curtin.edu.au> Ph: +61 9 368 2055
=========================================================================
Date: Fri, 25 Feb 1994 13:41:31 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Fred Terry <pfterry@LKS.CSI.COM>
Subject: Re: removal
In-Reply-To: Your message of "Sat,
26 Feb 94 00:28:42 +0800." <9402251854.AA25074@lks.lks.csi.com>
>
> >I just wanted to apologize for waiting a couple of hours to remove Mr. Parker
> >from the list. After one of his first messages, I sent him a note explaining
>
> You apologize??? That man is a total jerk. Why do they let these people
> lose on the Internet?
> Peter.
Ahem, well I was apologizing because after the 2nd and 3rd message I realized
I should have removed him immediately. Instead, I had sent him a message
explaining the command he could use to sign off. A mistake. I know better next
time.
pf
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
"Bad spellers of the world, untie!"
--Graffito
=========================================================================
Date: Fri, 25 Feb 1994 15:09:33 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Forwarded: -108 and -1753 errors
>Sorry this message got so long to get here -- I hope someone remembers the
>original post about the -108 error...
>
>
Well, I can explain the OSA Menu problem, and FW may be related.
the problem is that newer Finder's (especailly the scriptable one)
have the silly idea that they get to use all the memory that they have, and
no one else gets to play there. So, if something like OSA Menu tries to
borrow a little, it just isn't there.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Fri, 25 Feb 1994 15:10:46 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Getting serial port status in AS
You can tell if a given port is "in use" - which simply means that
something has it open (including background fax software which has it open
all the time!). There is NO WAY to actualy check "usage" w/o a set of
patches on the MacOS.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Fri, 25 Feb 1994 18:43:20 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
Subject: Frontmost windoid bugs
For those of you who are using the Frontmost interface builder (bundled
with the AppleScript Scriptor's Kit 1.1), please be aware of the following
bug that I discovered, involving the use of floating windows/windoids:
1. The problem is triggered when windoids are opened in the presence of a
document or dialog (modal) window.
2. In the above circumstances, if the windoid is titled, it will appear
WITHOUT its title bar and cannot be re-sized (if a size box is present); it
does NOT behave like a windoid should.
3. If the windoid is not titled, then it will appear with a title bar
showing the name of the windoid. In addition, its title bar has the
appearance of that from a document window (i.e. in color with the
characteristic horiz. stripes). Other than the non-windoid appearance, it
behaves as a windoid should.
One way to avoid this is to be extra cautious in the order in which windows
of various types are opened--windoids must open first without any other
window types open.
I have gotten in touch with both Apple (not much help there--tech support
at a minimum plus they want you to buy a support contract to even begin
looking at the problem! Outrageous!) and Software Designs Unlimited. SDU
is working on a fix for the next release--"soon."
I'll keep you posted.
Lee.
==============================================================
Lee K. Hoong
Dept. of Chemistry, Emory University
==============================================================
Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- --------------------------------------------------------------
Disclaimer: I speak for myself only, not for Emory University
=========================================================================
Date: Fri, 25 Feb 1994 19:04:41 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
Subject: Feeding the listserv & a question
Sorry about posting this to the list, itself, but how the heck does one get
this listserv to send only digests of messages? Or can it do it at all?
Well, as long as I'm here, I *do* have an AppleScript question. Is there a
way to get an AppleScript to return more than one direct parameter as a
result of script execution? Or, are you limited to a single result returned
to the calling app ? (Assuming you ran the script with OSADoScript)
- -----------------------------------------------------------------------
Chuck Shotton
cshotton@oac.hsc.uth.tmc.edu "I am NOT here."
=========================================================================
Date: Fri, 25 Feb 1994 17:54:58 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Jerry Wilcox <Jerry.Wilcox@UCOP.EDU>
Subject: Re: Feeding the listserv & a question
>Sorry about posting this to the list, itself, but how the heck does one get
>this listserv to send only digests of messages? Or can it do it at all?
>
Since the answer may be of general interest, I'll post the answer to the list.
To set the list to send you only a digest, send a message to
LISTSERV@dartmouth.edu
containing the following command in the body
SET MACSCRPT DIGESTS
Note that not all lists support the digest option, but Andy & Fred's info
posting about the new list indicated that this list did digest.
Should you want to return to regular distribution (i.e. getting each
message as it is posted), send the command
SET MACSCRPT MAIL
to the LISTSERV, as above.
You might also want to include a HELP command (on a separate line) in the
message. That will cause you to get an informational message which will
tell you about a lot of the other LISTSERV options. You may even want to
get a listserv reference "card", which you can request with an
INFO REFCARD
command. That will show you all of the various commands that are available
to you. These commands are good on *all* listserv lists, not just macscrpt.
Do note, however, that not all mailing lists are listserv lists.
NOTE AGAIN: these commands *must* be sent to LISTSERV itself -- *not* to
the list.
Jerry
- -----
Jerry Wilcox - Jerry.Wilcox@ucop.edu
All opinions are mine alone - the University can speak for itself.
=========================================================================
Date: Sat, 26 Feb 1994 00:21:17 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: INRA000 <INRA@MUSICB.MCGILL.CA>
Subject: "Complex" replies from scripts
In-Reply-To: In reply to your message of FRI 25 FEB 1994 08:04:41 EST
>Well, as long as I'm here, I *do* have an AppleScript question. Is there a
>way to get an AppleScript to return more than one direct parameter as a
>result of script execution? Or, are you limited to a single result returned
>to the calling app ? (Assuming you ran the script with OSADoScript)
Aha! I was just about to ask this one.
Just in case you smart cookies lurking in the shadows though you
would get out of this one, forget it! Enquiring minds want to know!
From a programmer's point of view, though, it doesn't look good.
Notice in NIM:IAC that the 'aete' resource has no provisions for
specifying anything regarding the reply AE other than its direct object.
Assuming the above is impossible, is it possible to manually play
with the error code or string returned? If the script fails, there's
always an error code or string paramater in the reply AE, but is a
catastrophic failure a requirement to get this? Does the "fail" com-
mand play a role?
Cheers,
Mark Aiken
inra@musicb.mcgill.ca
=========================================================================
Date: Fri, 25 Feb 1994 22:27:33 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Mike Crawford <crawford@SCIPP.UCSC.EDU>
Subject: Re: "Complex" replies from scripts
Regarding getting more than one parameter from a reply...
Though this is provided for in the Apple Event manager, I have it from
some authorities on AppleScript that there is no way to do this in A.S.
itself.
Thus I'm revising the CheckWord event in the Word Services spec. I used
to allow an optional list of guesses to be returned when one checked a
single word. This works fine for the usual direct connection between
word services apps, but it is incompatible with AppleScript. Instead,
I'm adding a new event called GuessWord.
There certainly ought to be a way to get at the error string if there
is one, but I do not know it other than to use AETracker. It is tremendously
useful to have the error string as a debugging tool - you can use it to
report which function posted the error, etc.
Mike Crawford | Author of the Word Services Apple Event Suite.
crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
| get /info-mac/dev/src/writeswell-jr-102-c.hqx
=========================================================================
Date: Sat, 26 Feb 1994 00:51:50 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: "Complex" replies from scripts
At 0:21 2/26/94 -0500, INRA000 wrote:
>>Well, as long as I'm here, I *do* have an AppleScript question. Is there a
>>way to get an AppleScript to return more than one direct parameter as a
>>result of script execution? Or, are you limited to a single result returned
>>to the calling app ? (Assuming you ran the script with OSADoScript)
>
> Aha! I was just about to ask this one.
>
> Just in case you smart cookies lurking in the shadows though you
>would get out of this one, forget it! Enquiring minds want to know!
I suspect it is done just as returning multiple values from a functional
osax is done: create a class; return a record containing each of the
property values for the class.
> From a programmer's point of view, though, it doesn't look good.
>Notice in NIM:IAC that the 'aete' resource has no provisions for
>specifying anything regarding the reply AE other than its direct object.
Given the class above, you specify the return value to be of the class type.
> Assuming the above is impossible, is it possible to manually play
>with the error code or string returned? If the script fails, there's
>always an error code or string paramater in the reply AE, but is a
>catastrophic failure a requirement to get this? Does the "fail" com-
>mand play a role?
Not a good idea, IMHO. Non-zero 'errn' or any 'errs' implies an error.
They probably shouldn't be asked to be used as a way to sneak non-error
information around.
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
"This is the network of our disconnect"
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Sat, 26 Feb 1994 05:44:39 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Jon Pugh <jonpugh@NETCOM.COM>
Subject: Re: MACSCRPT Digest - 24 Feb 1994 to 25 Feb 1994
>Well, as long as I'm here, I *do* have an AppleScript question. Is there a
>way to get an AppleScript to return more than one direct parameter as a
>result of script execution? Or, are you limited to a single result returned
>to the calling app ? (Assuming you ran the script with OSADoScript)
No. You can add other parameters to your reply event in your event
handler, but AppleScript cannot access them. The best you can do is to
return a list or a record. A record is the most common way of returned
tagged data. You simply define a class (with properties only) and use the
properties as keywords for your AERecord. Return this as the keyAEResult
and you are in business. Then you can do something like:
set x to fooEvent
set y to propFoo of x
Jon
=========================================================================
Date: Sat, 26 Feb 1994 14:23:49 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: INRA000 <INRA@MUSICB.MCGILL.CA>
Subject: Event handlers: how?
Hiya.
I'm having trouble writing a script with handlers for events
not part of the required suite (run, open, print, quit). Handlers for
required events are formatted differently when compiled than handlers
for events defined by an application. For example, an "on open" handler
compiles to look like
on open
...
end open
However, a handler for the "Stuff" command (defined in the Stuffit
Lite dictionary) compiles to look like
on stuff()
...
end stuff
Which looks suspiciously like the syntax for an internal message,
and not a handler for an Apple Event. As well, a handler for
"Stack windows" (defined in Stuffit) won't even compile -- in the
line "on stack windows", AE barfs on the "windows". Does this mean that
any event you want to write a handler for must have a name one word
long? Strangely, AE compiles "on data size" (defined in the Scriptable
Text Editor) fine. Formatted as "on data size [...] end data size"
(No parentheses).
The reason I ask is that I'm trying to write scripts that will tie
in with an application I'm writing -- I've written an 'aete' resource,
but I can't seem to get AppleScript to compile handlers for my defined
events. However, since I can't seem to write handlers for other apps'
events, either, I figure I must have the syntax wrong. Stuff like
"on MyEvent() [...] end MyEvent" compiles OK, but I just get
errAEEventNotHandled errors when trying to run the appropriate event
through that script.
Can I kludge this by writing "on ((some wierd notation for the
event class and ID))" manually?
Any help appreciated.
Mark Aiken
inra@musicb.mcgill.ca
=========================================================================
Date: Sat, 26 Feb 1994 17:24:45 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
Subject: Re: Event handlers: how?
> Hiya.
>
> I'm having trouble writing a script with handlers for events
>not part of the required suite (run, open, print, quit). Handlers for
>required events are formatted differently when compiled than handlers
>for events defined by an application. For example, an "on open" handler
>compiles to look like
>
>on open
> ...
>end open
>
> However, a handler for the "Stuff" command (defined in the Stuffit
>Lite dictionary) compiles to look like
>
>on stuff()
> ...
>end stuff
Huh? Why are you trying to write a handler for the stuff command. You
want to USE the stuff command, don't you? Not write a handler for it.
tell application "StuffIt Lite"
stuff ....
end tell
- --
jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
"This is the network of our disconnect"
finger me to prove I'm all wet (Port Ludlow rainfall numbers).
=========================================================================
Date: Sat, 26 Feb 1994 20:59:10 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Chris Brannon <cbbst+@PITT.EDU>
Subject: Unofficial Translator List
OK,
I checked out the Name resources of the Aladdin Translators. A few of them
didn't have Name resources, so I guess they can't be scripted.
Here are the names you ought to be able to use when refering to the translat=
ors:
n/a AppleLink Package Translator
AppleSingle AppleSingle Translator
BinHex4 BinHex4 Translator
btoa/atob btoa/atob Translator
CompactPro CompactPro Translator
n/a DD Translator
Arc DeArc Translator
MacBinary MacBinary Translator
tar tar Translator
n/a Text Translator
Compress Unix Compress Translator
PackIt UnPack Translator
I say *should* be able to use, b/c a couple of them still fail. "Compress"
for instance, doesn't. The following script:
- ------------
on open fileList
repeat with thisFile in fileList
tell application "SITcomm=81"
Translate (thisFile as string) translationformat "Compress" with tomacformat
end tell
end repeat
end open
- ------------
just doesn't work (it works fine with BinHex4 and tar, though). BTW, using
the UUCode translator with the above script invokes Macsbug when I try it.
Could someone else try this script and see if they can get it to deUnix
Compress a document?
Regards,...Chris
=========================================================================
Date: Sat, 26 Feb 1994 22:56:00 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: INRA000 <INRA@MUSICB.MCGILL.CA>
Subject: Re[2]: Event handlers: how?
In-Reply-To: In reply to your message of SAT 26 FEB 1994 04:24:45 EST
>> Hiya.
>>
>> I'm having trouble writing a script with handlers for events
>>not part of the required suite (run, open, print, quit). Handlers for
>>required events are formatted differently when compiled than handlers
>>for events defined by an application. For example, an "on open" handler
>>compiles to look like
>>
>>on open
>> ...
>>end open
>>
>> However, a handler for the "Stuff" command (defined in the Stuffit
>>Lite dictionary) compiles to look like
>>
>>on stuff()
>> ...
>>end stuff
>
>Huh? Why are you trying to write a handler for the stuff command. You
>want to USE the stuff command, don't you? Not write a handler for it.
I was merely using this as an example.
To repeat, I'm working on tying AppleScript into an application I'm
writing, and I can't seem to figure out how to write event handlers for
events defined by an application. This doesn't seem to be local to my
application -- as stated above, I can't, for example, write a handler
for the "stuff" command.
Anyone know what I'm doing wrong? Can anyone, for example, write
a handler to the stuff command? Or any app-defined event, for that
matter?
Mark Aiken
inra@musicb.mcgill.ca
=========================================================================
Date: Sun, 27 Feb 1994 09:34:01 +0200
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Comments: The BITNET node taurus.bitnet will cease to exist as of March
1994. If you are still using the address user@taurus.bitnet
please convert it to user@math.tau.ac.il
From: David *Frenkiel <dfl@MATH.TAU.AC.IL>
Subject: Re: Unofficial Translator List
Hi
Are any of these translators Public-domain/shareware? Does anyone know
of a scriptable zip translator?
thanx
David
=========================================================================
Date: Sun, 27 Feb 1994 07:26:07 GMT
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Central Postmaster <SSW.POSTMSTR@TSOD.LMIG.COM>
Subject: Mail Delivery Status
***** Error in Mail Delivery *****
INVALID RECIPIENT
Recipients:
MSMAIL.JOYS@TSOD.LMIG.COM
=========================================================================
Date: Sun, 27 Feb 1994 21:59:31 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Jeff Mealiffe <jmealif@CTP.ORG>
Subject: FileMaker to Eudora
Hodwy NetFolks!
I'm trying to write an AppleScript to copy data out of a field named
"Internet" of the current record in a FileMaker Pro 2.0 database and put
that string into the To: field of a new Eudora 1.4.1 message. Has anyone
already written such a script? Can anyone offer any suggestions? All help
will be greatly appreciated.
Thanks,
- -jeff
Jeff Mealiffe Jeff.Mealiffe@netops.lewis.edu
Mac Consultant/Sys Admin jmealif@ctp.org
Lewis Junior High School, San Diego, Calif. jmealif@sierra.fwl.edu
** For Information About The Lewis Jr. High Educational Foundation, send **
** e-mail to lewis@cerf.net with a subject of "mailserv send foundation" **
** (without the quotes). The system will respond automatically. **
=========================================================================
Date: Mon, 28 Feb 1994 05:15:21 LCL
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Rick Zeman <rick.zeman@HIS.COM>
Organization: Heller Information Services, Inc., Rockville MD
Subject: MACSCRPT DIGEST
|Hi
|
|Are any of these translators Public-domain/shareware? Does anyone know
|of a scriptable zip translator?
ZipIt (shareware) is scriptable.
___________________________________________________________________________
Rick Zeman "Wer nie sein Brot mit Tranen ass
rzeman@his.com Wer nie die kummervollen Nachte
Fidonet: 1:109/70.943 Auf seinem Bette weinend sas
Der kennt euch nicht, ihr himmlishcen Machte."
-- Goethe, "Wilhelm Meister"
=========================================================================
Date: Mon, 28 Feb 1994 13:48:29 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
Subject: Re(3): Event handlers: how?
> To repeat, I'm working on tying AppleScript into an application I'm
>writing, and I can't seem to figure out how to write event handlers for
>events defined by an application. This doesn't seem to be local to my
>application -- as stated above, I can't, for example, write a handler
>for the "stuff" command.
>
> Anyone know what I'm doing wrong? Can anyone, for example, write
>a handler to the stuff command? Or any app-defined event, for that
>matter?
>
> Mark Aiken
> inra@musicb.mcgill.ca
Handlers for custom events can be written in AppleScript and take the form:
on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
paramLabel:parameter]...] [global variableID [, variableID]...] [local
variableID [, variableID]
[statement]...
end [commandName]
So, for example, if my application sends a custom event (class:FMPX,
ID:dlog) to a script that's saved as an applet, the handler would look
something like:
on =ABaevt FMPXdlog=BB of theDirParamGiven
display dialog (theDirParamGiven as string)
end
Everytime my application sends the custom event to the above handler, it
will take the direct parameter of the event and display it in a dialog box.
Lee.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Lee K. Hoong
Dept. of Chemistry, Emory University
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- --------------------------------------------------------------
Disclaimer: I speak for myself only, not for Emory University
=========================================================================
Date: Mon, 28 Feb 1994 10:47:42 PDT
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: network_manager@ALDUS.COM
Organization: Aldus Corporation, Seattle, WA
Subject: NDN:Re(3): Event handlers: how?
Your mail to the Microsoft Mail Server could not be fully
delivered! No Valid Addresses! It has been deleted.
Error List:
Bad 'To:' Address: alan.stearns@MSM-Inter
=========================================================================
Date: Mon, 28 Feb 1994 13:59:28 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
Subject: Re: Re(3): Event handlers: how?
>Handlers for custom events can be written in AppleScript and take the form:
>
>on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
>paramLabel:parameter]...] [global variableID [, variableID]...] [local
>variableID [, variableID]
>
>[statement]...
>
>end [commandName]
>
>So, for example, if my application sends a custom event (class:FMPX, ID:dlo=
g)
>to a script that's saved as an applet, the handler would look something lik=
e:
>
>on =ABaevt FMPXdlog=BB of theDirParamGiven
>
> display dialog (theDirParamGiven as string)
>
>end
>
>Everytime my application sends the custom event to the above handler, it wi=
ll
>take the direct parameter of the event and display it in a dialog box.
>
>Lee.
Oops! There was an error in the sample event handler I posted earlier; the
corrected version is:
on =ABevent FMPXdlog=BB of theDirParamGiven
display dialog (theDirParamGiven as string)
end
Sorry!
Lee.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Lee K. Hoong
Dept. of Chemistry, Emory University
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- --------------------------------------------------------------
Disclaimer: I speak for myself only, not for Emory University
=========================================================================
Date: Mon, 28 Feb 1994 11:00:30 -0800
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Leonard Rosenthol <leonardr@NETCOM.COM>
Subject: Re: Unofficial Translator List
>Are any of these translators Public-domain/shareware?
>
No! The translators either come with your copy of StuffIt Lite or
StuffIt Deluxe.
>Does anyone know of a scriptable zip translator?
>
The one in StuffIt Deluxe works nicely, or you may want to look at
ZIPIt a shareware product that has some limited scriptability.
Leonard
- -----------------------------------------------------------------------------
Leonard Rosenthol Internet: leonardr@netcom.com
Director of Advanced Technology AppleLink: MACgician
Aladdin Systems, Inc. GEnie: MACgician
=========================================================================
Date: Mon, 28 Feb 1994 14:45:31 -0600
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: Geoffrey Bonser <gbonser@MACC.WISC.EDU>
Subject: Eudora & Applescript
I am trying to get Eudora 1.4.2 to launch with a settings file other than
the default one but I am not having any luck. I have an alias to the
settings file that I want opened on one machine and the real settings file
is on another machine in the same zone. If I tell the Finder (7.1) to open
the alias, nada, it just times out. If I try to tell Finder Liason to open
the alias it complains about not being able to make some data into the
expected type. i.e. tell application "Finder Liason 1.1" to open file
"Disk:Folder:Settings File alias" doesn't work and if I try to tell Eudora
to open document "Disk:Folder:Settings File alias" it starts up and opens
the default settings.
Does anyone have some suggestions or a working script that does this?
*****************************************************************************
* Geoffrey E. Bonser * Never try to teach a pig to sing. It wastes your *
* gbonser@macc.wisc.edu * time and annoys the pig. *
* Medical Photography * --Robert Heinlein *
* H6/137 CSC ****************************************************
* 600 Highland Ave. * Truly witty sig under construction. *
* Madison, WI 53792-1624 * *
* (608) 263-6027 * *
****************************************************************************
*
=========================================================================
Date: Mon, 28 Feb 1994 18:53:19 -0500
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
Subject: Re(4): Event handlers: how?
> To repeat, I'm working on tying AppleScript into an application I'm
>writing, and I can't seem to figure out how to write event handlers for
>events defined by an application. This doesn't seem to be local to my
>application -- as stated above, I can't, for example, write a handler
>for the "stuff" command.
>
> Anyone know what I'm doing wrong? Can anyone, for example, write
>a handler to the stuff command? Or any app-defined event, for that
>matter?
>
> Mark Aiken
> inra@musicb.mcgill.ca
Sorry my last messages have come across somewhat garbled. Here's my latest
attempt:
Handlers for custom events can be written in AppleScript and take the form:
on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
paramLabel:parameter]...] [global variableID [, variableID]...] [local
variableID [, variableID]
[statement]...
end [commandName]
So, for example, if my application sends a custom event (class:FMPX,
ID:dlog) to a script that's saved as an applet, the handler would look
something like:
on <<event FMPXdlog>> of theDirParamGiven
- -- where << is option-\ and << is shift-option-\
display dialog (theDirParamGiven as string)
end
Everytime my application sends the custom event to the above handler, it
will take the direct parameter of the event and display it in a dialog box.
Lee.
Lee K. Hoong
Dept. of Chemistry, Emory University
Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
Disclaimer: I speak for myself only, not for Emory University
=========================================================================
Date: Mon, 28 Feb 1994 18:54:00 EST
Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
From: INRA000 <INRA@MUSICB.MCGILL.CA>
Subject: Re(4): Event handlers: how?
>Handlers for custom events can be written in AppleScript and take the form:
>
>on | to commandName [[of] directParameter] [[given] paramLabel:parameter [,
>paramLabel:parameter]...] [global variableID [, variableID]...] [local
>variableID [, variableID]
>
>[statement]...
>
>end [commandName]
>
>So, for example, if my application sends a custom event (class:FMPX, ID:dlo=
g)
>to a script that's saved as an applet, the handler would look something lik=
e:
>
>on =ABaevt FMPXdlog=BB of theDirParamGiven
>
> display dialog (theDirParamGiven as string)
>
>end
>
>Everytime my application sends the custom event to the above handler, it wi=
ll
>take the direct parameter of the event and display it in a dialog box.
This is all very well. I've gotten a handler to work using the
notation
on <<event ABDCabcd>> of directParam
display dialog (directParam as string)
end <<event ABCDabcd>>
This works fine. However, I still haven't convinced AS to accept
paramaters other than the direct one. In my app's 'aete', I define the
names for the paramaters of a certain event. Let's say the event
class is 'ABCD' and the event ID is 'abcd'. Let's also say that I have
a direct parameter and another paramater, keyword '1234', named
otherParam. All this is in my 'aete', opened from the Script Editor.
This *does not* work:
on <<event ABCDabcd>> of directParam given otherParam:varName
display dialog (varName as string)
end <<event ABCDabcd>>
I get the error: "Paramater otherParam is missing from <<event
ABCDabcd>>. But it isn't. I checked.
Is there another manual notation like the <<event ABCDabcd>>
notation that could use to indicate the keyword of my other paramater?
Something like
on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
Final question: all this still doesn't answer my question: why
isn't AS using my 'aete'? stuff like "on myEventName" *still*
doesn't work, although manually saying "on <<event ABCDabcd>>" *does*.
The paramater problems clearly indicates that AS is *not* referring
to my 'aete' for appropriate vocabulary. Why not? Again, this doesn't
seem to be local to my application. Can anyone out there write a
functional event handler of the form
on eventName of var1Name given humanLanguageTag:var2Name ???
I'm running AS1.0. Was this fixed in 1.1, perchance?
Cheers, and thanks for the help so far,
Mark Aiken
inra@musicb.mcgill.ca
------- End of Forwarded Message